package cn.mw.cmdb.template.entity;

import cn.mw.cmdb.entity.PropertyTypeString;
import cn.mw.components.mongodb.anno.AutoId;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @description zabbix检测器
 */
@Getter
@Setter
@Schema(name = "MwZabbixDetectorDto", description = "zabbix检测器")
@Document("mw_cmdb_zabbix_detector")
public class MwZabbixDetectorDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "模板配置ID")
    @CMDBProperty(searchType = PropertyTypeString.ID, searchPrefix = "_", isShow = true)
    @AutoId
    private String id;

    @Schema(description = "键值")
    @CMDBProperty(searchType = PropertyTypeString.ID ,keywordSearch = true)
    private String keyValue;

    @Schema(description = "名称")
    @CMDBProperty(searchType = PropertyTypeString.ID ,keywordSearch = true)
    private String name;

    @Schema(description = "类型")
    @CMDBProperty(searchType = PropertyTypeString.ID ,keywordSearch = true)
    private String type;
}
